package cn.com.pc.content.domain.tag;

import cn.com.pc.content.domain.Biz;
import cn.com.pc.content.domain.Site;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface TagTreeRepository extends JpaRepository<TagTree, Long> {
    boolean existsBySiteAndBizAndName(Site site, Biz biz, String name);

    TagTree findByNameAndSite(String name, Site site);
}
